import { ajaxUser, ajax } from './ajax.js'

async function login(params) {
    let loginInfo = await ajaxUser.post('/itfer/rest/user/login', params)
    return loginInfo
}

/**
 * 保存用户信息 且返回用户类型
 */
async function saveUserInfo(params) {
    let saveUserInfo = await ajax.post('/xgej-jxbm/rest/user/saveUserInfo', params)
    return saveUserInfo
}

export default {
    login,
    saveUserInfo
}
